#@layout()
#define head()
<style>
strong{color:#FF0000}
</style>

<script>
$(function(){
	$("#dBody").css("height",$(document).height()-100 + 'px');
});
</script>
#end

#define content()
<div id="dBody" style="width:100%;height:80%;overflow-y:auto">
  <table style="margin:20px;">
  	<tr>
  		<td><strong>订单号：</strong></td>
  		<td>#(bo.no??)</td>
  	</tr>
  	<tr>
  		<td><strong>客户：</strong></td>
  		<td>#(bo.partner.company_name??)</td>
  	</tr>
  	<tr>
  		<td><strong>下单时间：</strong></td>
  		<td>#(bo.create_time??)</td>
  	</tr>
  	<tr>
  		<td><strong>总价：</strong></td>
  		<td>#(bo.money??)</td>
  	</tr>
  	
  	<tr>
  		<td colspan="2">
  			<div style="width:100%;">
  			#for(l : bo.lines)
  			<div style="width:100%;display: flex;border-bottom: 1px dashed  #FF0000;margin-top: 20px;">
  				<div style="width:30%;">
  					<img style="max-height: 80px;max-width: 80px;" src="#(CONTEXT_PATH??)/upload/temp/#(l.goods.img??)" />
  				</div>
  				<div style="width:68%;">
  					<strong>#(l.goods.name??)</strong> &nbsp;&nbsp;<br>数量：#(l.goods_count??)<br>
  					单价：#(l.goods_price??)<br>
  					小计：#(l.money??)
  				</div>
  			</div>
  			#end
  			</div>
  			
  		</td>
  	</tr>
  </table>
  
  #if(bo.state=='fahuo' && session['lg_user'].type=='customer')
  <a href="#(CONTEXT_PATH??)/m/salePay?id=#(bo.id??)" class="weui-btn weui-btn_primary btn">收货付款</a>
  <a href="#(CONTEXT_PATH??)/m/saleReturn?id=#(bo.id??)" class="weui-btn weui-btn_primary btn">我要退货</a>
  <a href="#(CONTEXT_PATH??)/m/salePeikuan?id=#(bo.id??)" class="weui-btn weui-btn_primary btn">申请赔款</a>
  #end
</div>

<script>
</script>

#end
